/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NewProfilePanel.java
 *
 * Created on 2009-09-29, 06:21:55
 */

package pl.tom.social.analyzer.gui.panel;

/**
 *
 * @author Tom
 */
public class NewProfilePanel extends javax.swing.JPanel {

    /** Creates new form NewProfilePanel */
    public NewProfilePanel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        nameLabel = new javax.swing.JLabel();
        nameTextField = new javax.swing.JTextField();
        queryLabel = new javax.swing.JLabel();
        queryTextField = new javax.swing.JTextField();

        nameLabel.setText(org.openide.util.NbBundle.getMessage(NewProfilePanel.class, "NewProfilePanel.nameLabel.text")); // NOI18N

        nameTextField.setHorizontalAlignment(javax.swing.JTextField.TRAILING);
        nameTextField.setText(org.openide.util.NbBundle.getMessage(NewProfilePanel.class, "NewProfilePanel.nameTextField.text")); // NOI18N

        queryLabel.setText(org.openide.util.NbBundle.getMessage(NewProfilePanel.class, "NewProfilePanel.queryLabel.text")); // NOI18N

        queryTextField.setText(org.openide.util.NbBundle.getMessage(NewProfilePanel.class, "NewProfilePanel.queryTextField.text")); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(nameLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 165, Short.MAX_VALUE)
                        .addComponent(nameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(queryLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(queryTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nameLabel)
                    .addComponent(nameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(queryLabel)
                    .addComponent(queryTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel nameLabel;
    private javax.swing.JTextField nameTextField;
    private javax.swing.JLabel queryLabel;
    private javax.swing.JTextField queryTextField;
    // End of variables declaration//GEN-END:variables

	public String getQueryName() {
		return nameTextField.getText();
	}

	public String getQuery() {
		return queryTextField.getText();
	}

	public void setQuery(String query) {
		queryTextField.setText(query);
	}
}
